<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hover-shadow-box-animation</title>
    <style>
        .hover-shadow-box-animation {
            display: inline-block;
            vertical-align: middle;
            transform: perspective(1px) translateZ(0);
            box-shadow: 0 0 1px transparent;
            margin: 10px;
            transition-duration: .3s;
            transition-property: box-shadow,transform;
        }
        .hover-shadow-box-animation:hover,.hover-shadow-box-animation:active,.hover-shadow-box-animation:focus {
            transform: scale(1.2);
            box-shadow: 1px 10px 10px -10px rgba(0,0,24,.5);
        }
    </style>
</head>
<body>
    <p class="hover-shadow-box-animation">Box it!</p>
</body>
</html>